import java.util.ArrayList;
import java.util.List;

public class Test2 {
    public static void main(String[] args) {
        List<String> ret= new ArrayList<>();
        String []str = {"ss","ss","ww"};
        ret = Test.topKFrequent(str,2);
        for (int i = 0; i < ret.size(); i++) {
            System.out.println(ret.get(i));
        }
    }
}
